package com.ruicar.afs.cloud.bizcommon.cms.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author: Lee
 * @date: 2020/5/11 19:39
 * @description: cms统一返回结果
 */
@Data
@ToString
public class CmsResponse <T> implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("返回码 M10051:表示cms中已存在此数据")
    private String code = "0000";
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private T data;
    @ApiModelProperty("返回状态码 成功1 失败0")
    private String success="1";
}
